home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1283 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: news.connectnet.com!usenet
  2. From: jtara@connectnet.com (Jon Tara)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  4. Subject: Re: IJG JPEG Engine and Win32
  5. Date: Wed, 10 Jan 1996 08:39:00 GMT
  6. Organization: CONNECTnet Internet Network Services (service provider)
  7. Message-ID: <30f378d9.15852447@news.connectnet.com>
  8. References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan8083559@netcom23.netcom.com> <4crnpl$k49@redstone.interpath.net>
  9. NNTP-Posting-Host: jtara.connectnet.com
  10. X-Newsreader: Forte Agent .99c/16.141
  11.  
  12. fortunat@interpath.com (Jumpstile Turner) wrote:
  13.  
  14. >   Incidently, I changed (and have been changing) a lot of stuff over 
  15. >to Win32 API calls, memory and file handling.  It sure seems a lot 
  16. >faster now as opposed to using the standard C stuff, but this might be 
  17. >my imagination.  
  18.  
  19. The right way to do this is to write your own source and destination
  20. drivers. I wrote a pair to read and write from/to MFC CArchives, and
  21. used this to integrate it into a JPEGImage class that I plugged into
  22. the Image clases from Barkakati's _Visual C++ Developer's Guide_.
  23.  
  24. This is a pretty slick way to go - I can just JPEGimage->serialize()
  25. onto a TCP connection! Using the MFC 4.0 CSocket class, it only takes
  26. a couple of lines of code to open a CSocket, open a CArchive onto the
  27. CSocket, and then serialize the image. Poof! It shows up on my little
  28. Perl server at the other end. (And will start showing up on my web
  29. site, once I write the buffering code into the Perl program and the
  30. NSAPI function to read it from the memory buffers...) 
  31. ________________________________________________________________________
  32. jtara@live.net  A new video clip (Netscape 1.1+) of San Diego Bay every half hour:
  33.  <URL:http://live.net/sandiego/> Rated top 5% & "best 1000" by Point Communications
  34. jtara@mediashare.com Tools and services for CD-ROM and online catalogs:
  35.  <URL:http://www.mediashare.com/> Also rated top 5% by Point Communications
  36.  
  37.  
  38.